package utils
{
	import mx.collections.ArrayCollection;
	
	public class ArrayUtils
	{
		public function ArrayUtils() {}

		public static function flip(a:Array):Array
		{
			var res:Array = new Array();
			for (var i:* in a) {
				res[a[i]] = i;
			}
			return res;
		}
		
		public static function keys(a:Array):Array
		{
			var tmpArray:Array = new Array();
			for (var i:* in a) {
				tmpArray.push(i);
			}
			return tmpArray;
		}

	}
}